-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: webkit quicklinks copy for webkit #9832
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really nice!
new ClipboardItem({ | ||
'text/plain': createQuicklink(args).then( | ||
(link) => new Blob([link.url], { type: 'text/plain' }) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really accept a promise? seems weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem
An Object with the MIME type as the key and data as the value. The data can be represented as a Blob, a String or a Promise which resolves to either a blob or string.
Co-authored-by: Dominik Schmidt <[email protected]>
SonarCloud Quality Gate failed. 1 Bug 68.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
* fix: webkit quicklinks copy for webkit * Update packages/web-pkg/src/helpers/share/link.ts Co-authored-by: Dominik Schmidt <[email protected]> --------- Co-authored-by: Dominik Schmidt <[email protected]>
* fix: webkit quicklinks copy for webkit * Update packages/web-pkg/src/helpers/share/link.ts Co-authored-by: Dominik Schmidt <[email protected]> --------- Co-authored-by: Dominik Schmidt <[email protected]>
* fix: webkit quicklinks copy for webkit * Update packages/web-pkg/src/helpers/share/link.ts Co-authored-by: Dominik Schmidt <[email protected]> --------- Co-authored-by: Dominik Schmidt <[email protected]>
Description
copying quicklings was broken on webkit based browsers, this is fixed now.
Related Issue
Motivation and Context
... hmmmm, no bugs, happy dev 🤣
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: